package com.gxan.renshidao.impl;

import com.gxan.pojo.SysDept;
import com.gxan.renshidao.SysDeptDao;
import com.gxan.utils.db.JdbcUtils;

import java.sql.SQLException;
import java.util.List;

public class SysDeptDaoImpl extends JdbcUtils implements SysDeptDao {
 //查询部门表
    @Override
    public List<SysDept> findDept() throws SQLException {
        String sql = "SELECT * FROM sys_dept";
        System.out.println(super.queryListEntity(SysDept.class,sql));
        return super.queryListEntity(SysDept.class,sql);
    }
}
